/**
* Copyright @ 2023 iAuto (Shanghai) Co., Ltd.
* All Rights Reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are NOT permitted except as agreed by
* iAuto (Shanghai) Co., Ltd.
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*/


/**
 * @description 状态
 */
import React from 'react';

export default (status: number) =>
  (() => {
    if (status === 0) {
      return <span style={{ color: '#00a817' }}>启用</span>;
    } else if (status === 1) {
      return <span style={{ color: '#ff7918' }}>停用</span>;
    } else {
      return <span style={{ color: '#000000' }}>草稿</span>;
    }
  })();
